import { post } from '@/utils/request'

// 职位设置 职级
export const getDepartmentListTree = p => post(`/service-org/b/department/v1/listTree`, p)
// 职位设置 职级
export const getEffectDepartmentListTree = p => post(`/service-org/b/department/v1/listEffectTree`, p)
// 职位设置 列表
export const getDepartmentList = p => post(`/service-org/b/department/v1/list`, p)
// 职位设置 新增
export const addDepartment = p => post(`/service-org/b/department/v1/add`, p)
// 职位设置 修改
export const modifyDepartment = p => post(`/service-org/b/department/v1/modify`, p)
// 职位设置 查看
export const viewDepartment = p => post(`/service-org/b/department/v1/view/${p.id}`, p, 'get')
// 职位设置 删除
export const delDepartment = p => post(`/service-org/b/department/v1/del/${p.id}`, p, 'get')
// 职位状态修改
export const changeDepartmentStatus = p => post(`/service-org/b/department/v1/changeStatus/${p.id}/${p.status}`, p, 'get')

// 员工设置 列表
export const getEmployeePageList = p => post(`/service-org/b/employee/v1/pageList`, p)
// 员工设置 列表
export const getEmployeeList = p => post(`/service-org/b/employee/v1/list`, p)
// 员工设置 新增
export const addEmployee = p => post(`/service-org/b/employee/v1/add`, p)
// 员工设置 修改
export const modifyEmployee = p => post(`/service-org/b/employee/v1/modify`, p)
// 员工设置 查看
export const viewEmployee = p => post(`/service-org/b/employee/v1/view/${p.id}`, p, 'get')
// 员工设置 删除
export const delEmployee = p => post(`/service-org/b/employee/v1/del/${p.id}`, p, 'get')
// 员工状态修改
export const changeEmployeeStatus = p => post(`/service-org/b/employee/v1/changeStatus/${p.id}/${p.status}`, p, 'get')
// 员工设置
export const employeeStatusList = p => post(`/service-org/b/employee/v1/employeeStatusList`, p)
